<div class="row">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li>
				<a href="#" onclick="toHome()">
					主页
				</a>
			</li>
			<li>
				<a href="#" class="toList" onclick="toParameterManage()">
					参数管理
				</a>
			</li>
			<li class="active">
				添加参数
			</li>
		</ol>
	</div>
</div>
<form role="form" class="form-horizontal">
	<div class="row page-cont">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 cont-top">
			<div class="panel panel-white">
				<div class="panel-heading">
					<h4 class="panel-title">
						<span class="title-text">添加参数</span>
					</h4>
					<div class="panel-tools">
						<div class="dropdown">
							<a data-toggle="dropdown" class="btn btn-xs dropdown-toggle btn-transparent-grey">
								<i class="fa fa-cog"></i>
							</a>
							<ul class="dropdown-menu dropdown-light pull-right" role="menu">
								<li>
									<a class="panel-collapse collapses" href="#"><i class="fa fa-angle-up"></i> <span>折叠</span> </a>
								</li>
								<li>
									<a class="panel-expand" href="#">
										<i class="fa fa-expand"></i> <span>全屏</span>
									</a>
								</li>
							</ul>
						</div>
						<a class="btn btn-xs btn-link panel-close" href="#">
							<i class="fa fa-times"></i>
						</a>
					</div>
				</div>
				<div class="panel-body">
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">上级参数</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" />
					    </div>
					    <div class="col-sm-4">
					    	<button type="button" class="btn btn-primary btn-sm">选择</button>
					    </div>
				  	</div>
					<div class="form-group panel-cont">
					    <label for="" class="col-sm-2 control-label">名称</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" />
					    </div>
 						<span class="col-sm-4 tips">
					    	<i class="fa fa-info-circle"></i>
					    	1-10位任意字符
					    </span>					    
				  	</div>
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">编号</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" id="version" />
					    </div>
 						<span class="col-sm-4 tips">
					    	<i class="fa fa-info-circle"></i>
					    	5-50位字母数字
					    </span>				
				  	</div>
				  	<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">状态</label>
					    <div class="col-sm-5">
					     	<select>
					     		<option value="">启用</option>
					     		<option value="">停用</option>
					     	</select>
					    </div>
				  	</div>
					<div class="form-group panel-cont parameter-value1">
					    <label class="col-sm-2 control-label">值</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" />
					    </div>
 						<span class="col-sm-4 tips">
					    	<i class="fa fa-info-circle"></i>
					    	1-500位任意字符
					    </span>
				  	</div>				  	
				  	<div class="form-group panel-cont parameter-value">
					    <label class="col-sm-2 control-label">值<img src="http://admin.tihe-china.com/files/images/i18n/jp.gif" width="34" height="18" alt=""></label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" />
					    </div>
 						<span class="col-sm-4 tips">
					    	<i class="fa fa-info-circle"></i>
					    	1-500位任意字符
					    </span>
				  	</div>
					<div class="form-group panel-cont parameter-value">
					    <label class="col-sm-2 control-label">值<img src="http://admin.tihe-china.com/files/images/i18n/us.gif" width="34" height="18" alt=""></label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" />
					    </div>
 						<span class="col-sm-4 tips">
					    	<i class="fa fa-info-circle"></i>
					    	1-500位任意字符
					    </span>
				  	</div>				  	
					<div class="form-group panel-cont parameter-value">
					    <label class="col-sm-2 control-label">值<img src="http://admin.tihe-china.com/files/images/i18n/cn.gif" width="34" height="18" alt=""></label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" />
					    </div>
 						<span class="col-sm-4 tips">
					    	<i class="fa fa-info-circle"></i>
					    	1-500位任意字符
					    </span>
				  	</div>				  	
					<div class="form-group panel-cont parameter-value">
					    <label class="col-sm-2 control-label">值<img src="http://admin.tihe-china.com/files/images/i18n/hk.gif" width="34" height="18" alt=""></label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" />
					    </div>
 						<span class="col-sm-4 tips">
					    	<i class="fa fa-info-circle"></i>
					    	1-500位任意字符
					    </span>
				  	</div>
					<div class="form-group panel-cont parameter-value">
					    <label class="col-sm-2 control-label">值<img src="http://admin.tihe-china.com/files/images/i18n/tw.gif" width="34" height="18" alt=""></label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" />
					    </div>
 						<span class="col-sm-4 tips">
					    	<i class="fa fa-info-circle"></i>
					    	1-500位任意字符
					    </span>
				  	</div>				  	
				  	<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">排序</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" />
					    </div>
 						<span class="col-sm-4 tips">
					    	<i class="fa fa-info-circle"></i>
					    	2-10位任意字符
					    </span>
				  	</div>
					<div class="form-group panel-btn">
				  		<div class="col-sm-2 col-sm-offset-3">
				  			<button type="button" class="btn btn-danger submit-btn">提交&nbsp;<i class="fa fa-arrow-circle-right"></i></button>
				  		</div>
				  	</div>				  	
				</div>
			</div>
		</div>
	</div>
</form>
<script>
	/**********************************************变量**********************************************/
	var username = GetQueryString("username");      // 用户姓名
	var token = MXCookie.get("token",token);        // 登陆token   

	/**********************************************事件**********************************************/	
	$("input").attr("readonly","readonly");


	if($(".pageAdd").attr("data-type") == "type1"){
		$(".parameter-value").show();
		$(".parameter-value1").hide();
	}else if($(".pageAdd").attr("data-type") == "type2"){
		$(".parameter-value").hide();
		$(".parameter-value1").show();
	}
</script>
